package com.example.warehouse.bus.dao.persist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.warehouse.bus.pojo.entity.BusBreakage;
import com.example.warehouse.bus.pojo.entity.BusRepertory;
import com.example.warehouse.bus.pojo.param.BusBreakageQueryParam;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BusBreakageMapper extends BaseMapper<BusBreakage> {
    List<BusBreakage> list();
    //通过商品查询商品库存信息
    BusRepertory findByGoodsNameGoodsRepertory(String goodsName);
    //模糊查询后的分页实现
    List<BusBreakage> findByKeywordAndTypeFuzzyQuery(BusBreakageQueryParam busBreakageQueryParam);
}
